<%@ page import="projectmanager.Membership" %>



<div class="fieldcontain ${hasErrors(bean: membershipInstance, field: 'user', 'error')} required">
	<label for="user">
		<g:message code="membership.user.label" default="User" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="user" name="user.id" from="${projectmanager.User.list()}" optionKey="id" required="" value="${membershipInstance?.user?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: membershipInstance, field: 'project', 'error')} required">
	<label for="project">
		<g:message code="membership.project.label" default="Project" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="project" name="project.id" from="${projectmanager.Project.list()}" optionKey="id" required="" value="${membershipInstance?.project?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: membershipInstance, field: 'startDate', 'error')} required">
	<label for="startDate">
		<g:message code="membership.startDate.label" default="Start Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="startDate" precision="day"  value="${membershipInstance?.startDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: membershipInstance, field: 'endDate', 'error')} ">
	<label for="endDate">
		<g:message code="membership.endDate.label" default="End Date" />
		
	</label>
	<g:datePicker name="endDate" precision="day"  value="${membershipInstance?.endDate}" default="none" noSelection="['': '']" />
</div>

